package com.example.smartf.model.mysql;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
public class TraindataKey implements Serializable {
    @Column(name = "deviceid")
    private String deviceID;

    @Column(name = "days")
    private Integer days;

    public String getDeviceID() {
        return deviceID;
    }

    public void setDeviceID(String deviceID) {
        this.deviceID = deviceID;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    @Override
    public String toString() {
        return "TraindataKey{" +
                "deviceID='" + deviceID + '\'' +
                ", days=" + days +
                '}';
    }
}
